-- GENERATED SPELL FOR [Wildspawn Rogue] --


function spell0_11452(pUnit, Event) --@Rupture,n/a--
pUnit:FullCastSpellOnTarget(15583,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11452', 10000, 1)
end

function spell1_11452(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(15667,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11452', 637, 1)
end

function Sorts_11452(pUnit, Event)
local choix_sorts_11452 = math.random(0, 1)
if choix_sorts_11452 == 0 then
pUnit:RegisterEvent('spell0_11452', 1, 1)
end
if choix_sorts_11452 == 1 then
pUnit:RegisterEvent('spell1_11452', 1, 1)
end
end

function mob11452_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11452', math.random(1500, 3000), 1)
end

function mob11452_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11452_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11452_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11452, 1, 'mob11452_Action')
RegisterUnitEvent(11452, 2, 'mob11452_Leave')
RegisterUnitEvent(11452, 3, 'mob11452_Kill')
RegisterUnitEvent(11452, 4, 'mob11452_Die')
